package com.mobilepoc.jersey.model;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Transaction
{
   private String id;
   private String text;
   private Date bookingDate;
   private double amount;

   public Transaction(){
      //Makes ws.rs happy
   }
   
   public Transaction(String id, String text, Date bookingDate, double amount) {
      this.id = id;
      this.text=text;
      this.bookingDate = bookingDate;
      this.amount = amount;
   }

   public String getId() {
      return id;
   }

   public void setId(String id) {
      this.id = id;
   }

   public Date getBookingDate() {
      return bookingDate;
   }

   public void setBookingDate(Date bookingDate) {
      this.bookingDate = bookingDate;
   }

   public double getAmount() {
      return amount;
   }

   public void setAmount(double amount) {
      this.amount = amount;
   }

   public String getText() {
      return text;
   }

   public void setText(String text) {
      this.text = text;
   }
}
